﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Rating.aspx.vb" Inherits="Universities.Rating" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Chart ID="Chart1" runat="server" Height="479px" Width="913px" 
    DataSourceID="SqlDataSource1">
        <Series>
            <asp:Series Name="Series1" ChartType="StackedBar" XValueMember="uni_name" 
                YValueMembers="AvgOfrating">
            </asp:Series>
        </Series>
        <ChartAreas>
            <asp:ChartArea Name="ChartArea1">
            </asp:ChartArea>
        </ChartAreas>
        <Titles>
            <asp:Title Docking="Bottom" Font="Microsoft Sans Serif, 14pt, style=Bold" 
                Name="Avg Rating " Text="Average Rating ">
            </asp:Title>
            <asp:Title Docking="Left" Font="Microsoft Sans Serif, 14pt, style=Bold" 
                ForeColor="DodgerBlue" Name="Uni Name" Text="Name of the University">
            </asp:Title>
        </Titles>
    </asp:Chart>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:UniConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:UniConnectionString.ProviderName %>" 
    SelectCommand="SELECT [AvgOfrating], [uni_name], [CountOfuserID] FROM [Qry_Rating_Chart]">
</asp:SqlDataSource>
</asp:Content>
